import {createQRCode} from '../../../Tools/HTTPOpertion.js';
Page({
  data: {
      phone:"",
      obj:''
  },
  onLoad: function (options) {
    console.log(options)
    // if(options.loginname!='null'){
    var ph = "";
    for (var i = 0; i < options.loginname.length;i++){
      var v = options.loginname[i];
      if (i == 3 || i == 4 || i == 5 || i == 6){
          v = "*"
        }
        ph += v
    }
      syjsIf:false
      var self = this;
      this.setData({
        phone: ph
      });
      createQRCode().then(function (result) {
        self.setData({
          obj: result.data
        });
      }).catch(function (error) {
          console.log(error);
      });
    // }
  },
  syjsTap:function(){
      this.setData({
          syjsIf: !this.data.syjsIf
      })
  },

})
